﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RaisingStudio.Data.SharePoint.Entities
{
    public partial class _ContractList : RaisingStudio.Data.Expressions.TableExpression, RaisingStudio.Data.Expressions.IQueryExpression<_ContractList>
    {
        #region Constructor (s) / Destructor
        /// <summary>
        /// Constructor (s) / Destructor.
        /// </summary>
        public _ContractList() : base("ContractList")
        {
        }
        #endregion
        #region Members
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _ContentTypeId = "ContentTypeId";
        public RaisingStudio.Data.Expressions.ColumnExpression ContentTypeId { get { return _ContentTypeId; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Title = "Title";
        public RaisingStudio.Data.Expressions.ColumnExpression Title { get { return _Title; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression __ModerationComments = "_ModerationComments";
        public RaisingStudio.Data.Expressions.ColumnExpression _ModerationComments { get { return __ModerationComments; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _File_x0020_Type = "File_x0020_Type";
        public RaisingStudio.Data.Expressions.ColumnExpression File_x0020_Type { get { return _File_x0020_Type; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _LastNamePhonetic = "LastNamePhonetic";
        public RaisingStudio.Data.Expressions.ColumnExpression LastNamePhonetic { get { return _LastNamePhonetic; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _FirstName = "FirstName";
        public RaisingStudio.Data.Expressions.ColumnExpression FirstName { get { return _FirstName; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _FirstNamePhonetic = "FirstNamePhonetic";
        public RaisingStudio.Data.Expressions.ColumnExpression FirstNamePhonetic { get { return _FirstNamePhonetic; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _FullName = "FullName";
        public RaisingStudio.Data.Expressions.ColumnExpression FullName { get { return _FullName; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Email = "Email";
        public RaisingStudio.Data.Expressions.ColumnExpression Email { get { return _Email; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Company = "Company";
        public RaisingStudio.Data.Expressions.ColumnExpression Company { get { return _Company; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _CompanyPhonetic = "CompanyPhonetic";
        public RaisingStudio.Data.Expressions.ColumnExpression CompanyPhonetic { get { return _CompanyPhonetic; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _JobTitle = "JobTitle";
        public RaisingStudio.Data.Expressions.ColumnExpression JobTitle { get { return _JobTitle; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _WorkPhone = "WorkPhone";
        public RaisingStudio.Data.Expressions.ColumnExpression WorkPhone { get { return _WorkPhone; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _HomePhone = "HomePhone";
        public RaisingStudio.Data.Expressions.ColumnExpression HomePhone { get { return _HomePhone; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _CellPhone = "CellPhone";
        public RaisingStudio.Data.Expressions.ColumnExpression CellPhone { get { return _CellPhone; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _WorkFax = "WorkFax";
        public RaisingStudio.Data.Expressions.ColumnExpression WorkFax { get { return _WorkFax; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _WorkAddress = "WorkAddress";
        public RaisingStudio.Data.Expressions.ColumnExpression WorkAddress { get { return _WorkAddress; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _WorkCity = "WorkCity";
        public RaisingStudio.Data.Expressions.ColumnExpression WorkCity { get { return _WorkCity; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _WorkState = "WorkState";
        public RaisingStudio.Data.Expressions.ColumnExpression WorkState { get { return _WorkState; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _WorkZip = "WorkZip";
        public RaisingStudio.Data.Expressions.ColumnExpression WorkZip { get { return _WorkZip; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _WorkCountry = "WorkCountry";
        public RaisingStudio.Data.Expressions.ColumnExpression WorkCountry { get { return _WorkCountry; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _WebPage = "WebPage";
        public RaisingStudio.Data.Expressions.ColumnExpression WebPage { get { return _WebPage; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Comments = "Comments";
        public RaisingStudio.Data.Expressions.ColumnExpression Comments { get { return _Comments; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Location = "Location";
        public RaisingStudio.Data.Expressions.ColumnExpression Location { get { return _Location; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Department = "Department";
        public RaisingStudio.Data.Expressions.ColumnExpression Department { get { return _Department; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _ID = "ID";
        public RaisingStudio.Data.Expressions.ColumnExpression ID { get { return _ID; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _ContentType = "ContentType";
        public RaisingStudio.Data.Expressions.ColumnExpression ContentType { get { return _ContentType; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Modified = "Modified";
        public RaisingStudio.Data.Expressions.ColumnExpression Modified { get { return _Modified; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Created = "Created";
        public RaisingStudio.Data.Expressions.ColumnExpression Created { get { return _Created; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Author = "Author";
        public RaisingStudio.Data.Expressions.ColumnExpression Author { get { return _Author; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Editor = "Editor";
        public RaisingStudio.Data.Expressions.ColumnExpression Editor { get { return _Editor; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression __HasCopyDestinations = "_HasCopyDestinations";
        public RaisingStudio.Data.Expressions.ColumnExpression _HasCopyDestinations { get { return __HasCopyDestinations; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression __CopySource = "_CopySource";
        public RaisingStudio.Data.Expressions.ColumnExpression _CopySource { get { return __CopySource; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _owshiddenversion = "owshiddenversion";
        public RaisingStudio.Data.Expressions.ColumnExpression owshiddenversion { get { return _owshiddenversion; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _WorkflowVersion = "WorkflowVersion";
        public RaisingStudio.Data.Expressions.ColumnExpression WorkflowVersion { get { return _WorkflowVersion; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression __UIVersion = "_UIVersion";
        public RaisingStudio.Data.Expressions.ColumnExpression _UIVersion { get { return __UIVersion; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression __UIVersionString = "_UIVersionString";
        public RaisingStudio.Data.Expressions.ColumnExpression _UIVersionString { get { return __UIVersionString; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Attachments = "Attachments";
        public RaisingStudio.Data.Expressions.ColumnExpression Attachments { get { return _Attachments; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression __ModerationStatus = "_ModerationStatus";
        public RaisingStudio.Data.Expressions.ColumnExpression _ModerationStatus { get { return __ModerationStatus; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Edit = "Edit";
        public RaisingStudio.Data.Expressions.ColumnExpression Edit { get { return _Edit; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _LinkTitleNoMenu = "LinkTitleNoMenu";
        public RaisingStudio.Data.Expressions.ColumnExpression LinkTitleNoMenu { get { return _LinkTitleNoMenu; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _LinkTitle = "LinkTitle";
        public RaisingStudio.Data.Expressions.ColumnExpression LinkTitle { get { return _LinkTitle; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _SelectTitle = "SelectTitle";
        public RaisingStudio.Data.Expressions.ColumnExpression SelectTitle { get { return _SelectTitle; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _InstanceID = "InstanceID";
        public RaisingStudio.Data.Expressions.ColumnExpression InstanceID { get { return _InstanceID; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Order = "Order";
        public RaisingStudio.Data.Expressions.ColumnExpression Order { get { return _Order; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _GUID = "GUID";
        public RaisingStudio.Data.Expressions.ColumnExpression GUID { get { return _GUID; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _WorkflowInstanceID = "WorkflowInstanceID";
        public RaisingStudio.Data.Expressions.ColumnExpression WorkflowInstanceID { get { return _WorkflowInstanceID; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _FileRef = "FileRef";
        public RaisingStudio.Data.Expressions.ColumnExpression FileRef { get { return _FileRef; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _FileDirRef = "FileDirRef";
        public RaisingStudio.Data.Expressions.ColumnExpression FileDirRef { get { return _FileDirRef; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Last_x0020_Modified = "Last_x0020_Modified";
        public RaisingStudio.Data.Expressions.ColumnExpression Last_x0020_Modified { get { return _Last_x0020_Modified; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Created_x0020_Date = "Created_x0020_Date";
        public RaisingStudio.Data.Expressions.ColumnExpression Created_x0020_Date { get { return _Created_x0020_Date; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _FSObjType = "FSObjType";
        public RaisingStudio.Data.Expressions.ColumnExpression FSObjType { get { return _FSObjType; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _PermMask = "PermMask";
        public RaisingStudio.Data.Expressions.ColumnExpression PermMask { get { return _PermMask; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _FileLeafRef = "FileLeafRef";
        public RaisingStudio.Data.Expressions.ColumnExpression FileLeafRef { get { return _FileLeafRef; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _UniqueId = "UniqueId";
        public RaisingStudio.Data.Expressions.ColumnExpression UniqueId { get { return _UniqueId; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _ProgId = "ProgId";
        public RaisingStudio.Data.Expressions.ColumnExpression ProgId { get { return _ProgId; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _ScopeId = "ScopeId";
        public RaisingStudio.Data.Expressions.ColumnExpression ScopeId { get { return _ScopeId; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _HTML_x0020_File_x0020_Type = "HTML_x0020_File_x0020_Type";
        public RaisingStudio.Data.Expressions.ColumnExpression HTML_x0020_File_x0020_Type { get { return _HTML_x0020_File_x0020_Type; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression __EditMenuTableStart = "_EditMenuTableStart";
        public RaisingStudio.Data.Expressions.ColumnExpression _EditMenuTableStart { get { return __EditMenuTableStart; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression __EditMenuTableEnd = "_EditMenuTableEnd";
        public RaisingStudio.Data.Expressions.ColumnExpression _EditMenuTableEnd { get { return __EditMenuTableEnd; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _LinkFilenameNoMenu = "LinkFilenameNoMenu";
        public RaisingStudio.Data.Expressions.ColumnExpression LinkFilenameNoMenu { get { return _LinkFilenameNoMenu; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _LinkFilename = "LinkFilename";
        public RaisingStudio.Data.Expressions.ColumnExpression LinkFilename { get { return _LinkFilename; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _DocIcon = "DocIcon";
        public RaisingStudio.Data.Expressions.ColumnExpression DocIcon { get { return _DocIcon; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _ServerUrl = "ServerUrl";
        public RaisingStudio.Data.Expressions.ColumnExpression ServerUrl { get { return _ServerUrl; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _EncodedAbsUrl = "EncodedAbsUrl";
        public RaisingStudio.Data.Expressions.ColumnExpression EncodedAbsUrl { get { return _EncodedAbsUrl; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _BaseName = "BaseName";
        public RaisingStudio.Data.Expressions.ColumnExpression BaseName { get { return _BaseName; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _MetaInfo = "MetaInfo";
        public RaisingStudio.Data.Expressions.ColumnExpression MetaInfo { get { return _MetaInfo; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression __Level = "_Level";
        public RaisingStudio.Data.Expressions.ColumnExpression _Level { get { return __Level; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression __IsCurrentVersion = "_IsCurrentVersion";
        public RaisingStudio.Data.Expressions.ColumnExpression _IsCurrentVersion { get { return __IsCurrentVersion; } }

		#endregion

        public static implicit operator RaisingStudio.Data.Expressions.ConditionExpression(_ContractList ContractList)
        {
            return new RaisingStudio.Data.Expressions.ConditionExpression();
        }

        public RaisingStudio.Data.Expressions.ConditionExpression OrderBy(RaisingStudio.Data.Expressions.ColumnExpression columnExpression)
        {
             RaisingStudio.Data.Expressions.ConditionExpression conditionExpression = this;
             return conditionExpression.OrderBy(columnExpression);
        }

        public RaisingStudio.Data.Expressions.ConditionExpression OrderBy(RaisingStudio.Data.Expressions.ColumnExpression columnExpression, RaisingStudio.Data.Expressions.SortingDirection sortingDirection)
        {
            RaisingStudio.Data.Expressions.ConditionExpression conditionExpression = this;
            return conditionExpression.OrderBy(columnExpression, sortingDirection);
        }

        public RaisingStudio.Data.Expressions.ConditionExpression Where(RaisingStudio.Data.Expressions.ExpressionElement expressionElement)
        {
            RaisingStudio.Data.Expressions.ConditionExpression conditionExpression = this;
            return conditionExpression.Where(expressionElement);
        }

        public static implicit operator RaisingStudio.Data.Expressions.ColumnExpressionCollection(_ContractList ContractList)
        {
            return new RaisingStudio.Data.Expressions.ColumnExpressionCollection(ContractList);
        }

        public static implicit operator RaisingStudio.Data.Expressions.ColumnExpression[](_ContractList ContractList)
        {
            return new RaisingStudio.Data.Expressions.ColumnExpression[]
                        {                            
                            ContractList.ContentTypeId,
                            ContractList.Title,
                            ContractList._ModerationComments,
                            ContractList.File_x0020_Type,
                            ContractList.LastNamePhonetic,
                            ContractList.FirstName,
                            ContractList.FirstNamePhonetic,
                            ContractList.FullName,
                            ContractList.Email,
                            ContractList.Company,
                            ContractList.CompanyPhonetic,
                            ContractList.JobTitle,
                            ContractList.WorkPhone,
                            ContractList.HomePhone,
                            ContractList.CellPhone,
                            ContractList.WorkFax,
                            ContractList.WorkAddress,
                            ContractList.WorkCity,
                            ContractList.WorkState,
                            ContractList.WorkZip,
                            ContractList.WorkCountry,
                            ContractList.WebPage,
                            ContractList.Comments,
                            ContractList.Location,
                            ContractList.Department,
                            ContractList.ID,
                            ContractList.ContentType,
                            ContractList.Modified,
                            ContractList.Created,
                            ContractList.Author,
                            ContractList.Editor,
                            ContractList._HasCopyDestinations,
                            ContractList._CopySource,
                            ContractList.owshiddenversion,
                            ContractList.WorkflowVersion,
                            ContractList._UIVersion,
                            ContractList._UIVersionString,
                            ContractList.Attachments,
                            ContractList._ModerationStatus,
                            ContractList.Edit,
                            ContractList.LinkTitleNoMenu,
                            ContractList.LinkTitle,
                            ContractList.SelectTitle,
                            ContractList.InstanceID,
                            ContractList.Order,
                            ContractList.GUID,
                            ContractList.WorkflowInstanceID,
                            ContractList.FileRef,
                            ContractList.FileDirRef,
                            ContractList.Last_x0020_Modified,
                            ContractList.Created_x0020_Date,
                            ContractList.FSObjType,
                            ContractList.PermMask,
                            ContractList.FileLeafRef,
                            ContractList.UniqueId,
                            ContractList.ProgId,
                            ContractList.ScopeId,
                            ContractList.HTML_x0020_File_x0020_Type,
                            ContractList._EditMenuTableStart,
                            ContractList._EditMenuTableEnd,
                            ContractList.LinkFilenameNoMenu,
                            ContractList.LinkFilename,
                            ContractList.DocIcon,
                            ContractList.ServerUrl,
                            ContractList.EncodedAbsUrl,
                            ContractList.BaseName,
                            ContractList.MetaInfo,
                            ContractList._Level,
                            ContractList._IsCurrentVersion,
                        };
        }

        public RaisingStudio.Data.Expressions.ColumnExpressionCollection Except(params RaisingStudio.Data.Expressions.ColumnExpression[] columns)
        {
            RaisingStudio.Data.Expressions.ColumnExpressionCollection columnExpressionCollection = this;
            return columnExpressionCollection.Except(columns);
        }

    
        public static implicit operator RaisingStudio.Data.Expressions.QueryExpression<_ContractList>(_ContractList ContractList)
        {
            return new RaisingStudio.Data.Expressions.QueryExpression<_ContractList>(ContractList);
        }


        #region IQueryExpression<_ContractList> 成员

        _ContractList RaisingStudio.Data.Expressions.IQueryExpression<_ContractList>.Value
        {
            get { return ContractList._; }
        }

        #endregion

        #region IQueryExpression 成员

        RaisingStudio.Data.Expressions.TableExpression RaisingStudio.Data.Expressions.IQueryExpression.Table
        {
            get { return this; }
        }

        RaisingStudio.Data.Expressions.ConditionExpression RaisingStudio.Data.Expressions.IQueryExpression.Condition
        {
            get { return this; }
        }

        RaisingStudio.Data.Expressions.ColumnExpressionCollection RaisingStudio.Data.Expressions.IQueryExpression.Columns
        {
            get { return null; }
        }

        #endregion
    }

    partial class ContractList
    {
        #region Members
        public static readonly _ContractList _ = new _ContractList();
		#endregion
    }
}
